package com.hongfan.sentinel.exception;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author zcs
 * @since 2023/3/31
 */
@RestControllerAdvice
public class GlobeBlockException {

    public static String blockHandler(BlockException e) {
        return "接口被流控限流";
    }
}
